import request from '@/utils/requestHttp'
export function getList(params) {
  return request({
    url: '/blog/blogs',
    method: 'get',
    params,
  })
}
export function userLogin(data) {
  return request({
    url: '/user/login',
    method: 'post',
    data,
  })
}
export function userTest() {
  return request({
    url: '/blog/index',
    method: 'get',
  })
}
export function userInfo(params) {
  return request({
    url: '/user/getUserInfo',
    method: 'get',
    params,
  })
}
export function getRouter(params) {
  return request({
    url: '/router/getRouter',
    method: 'get',
    params,
  })
}
export function getTravel(params) {
  return request({
    url: '/travel/getTravels',
    method: 'get',
    params,
  })
}
export function addSite(data) {
  return request({
    url: '/site/addSite',
    method: 'post',
    data,
  })
}
export function addPersonage(data) {
  return request({
    url: '/personage/addPersonage',
    method: 'post',
    data,
  })
}
export function addTravel(data) {
  return request({
    url: '/travel/addTravel',
    method: 'post',
    data,
  })
}
export function addEventData(data) {
  return request({
    url: '/event/addEvent',
    method: 'post',
    data,
  })
}
export function updateSite(data) {
  return request({
    url: '/site/updateSite',
    method: 'put',
    data,
  })
}
export function addSiteCover(data) {
  return request({
    url: '/site/addCover',
    method: 'put',
    data,
  })
}
export function addPersonageCover(data) {
  return request({
    url: '/personage/addCover',
    method: 'put',
    data,
  })
}
